﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.Interfaces.IDAO
{
    public interface IDAO<T>
    {
        List<T> GetAll(bool is_lazy);

        List<T> GetAllByField(string fielsName, object value);

        List<T> GetBySelect(string where, bool is_lasy = false);

        bool SaveOrUpdateAndCommit(IDomainObject domainObject);

        bool Delete(IDomainObject domainObject);
    }
}
